<template>
  <view class="city-content">
    <!-- 定位区域 -->
    <view class="conlation">
      <view>
        <text class="iconfont icon-dingwei"></text>
        <text>自动定位:{{ city }}</text>
      </view>
      <view @click="toChangeCity">
        <text>切换</text>
        <text class="iconfont icon-youjiantou1"></text>
      </view>
    </view>
    <!-- 视频列表区域 -->
    <city-video-list></city-video-list>
  </view>
</template>

<script>
import CityVideoList from './CityVideoList.vue'
export default {
  name: 'CityContent',
  components: { CityVideoList },
  data() {
    return { city: uni.getStorageSync('city') }
  },
  methods: {
    toChangeCity() {
      uni.navigateTo({ url: '/pages/ChangeCity/ChangeCity' })
    }
  }
}
</script>

<style lang="scss" scoped>
.city-content {
  background: skyblue;
  background: #181723;
  padding: 0 30rpx;
  .conlation {
    height: 98rpx;
    width: 100%;
    color: gray;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 28rpx;
  }
}
</style>
